package models.vos.money {
	import models.vos.accounts.User;
	

	public class Moneyable {

		private var id:Number;

		public var amount:Number;

		public var unit:MoneyUnit;

		public var date:Date;

		public var submitBy:User;

		public var USDExchangeRate:Number;

		public var budgetCategory:BudgetCategory;

		public function Moneyable( category:String = null, 
			amount:Number = 0, 
			unit:String = "USD", 
			id:Number = 0 ) {
				this.unit = new MoneyUnit(unit);
				this.date = new Date();
				this.amount = amount;
				this.submitBy = null;
				this.budgetCategory = new BudgetCategory( category );
				this.id = id;
				
		}
	} // end class
} // end package